| Conditions | 1 |
| Total Lines | 14 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | import React from 'react'; |
||
| 11 | |||
| 12 | export default function MutedMessage({ children, marginSize = DEFAULT_MARGIN_SIZE }) { |
||
| 13 | 5 | const cardClasses = classnames('bg-light', { |
|
| 14 | [`mt-${marginSize}`]: marginSize > 0, |
||
| 15 | }); |
||
| 16 | |||
| 17 | 5 | return ( |
|
| 18 | <div className="col-md-10 offset-md-1"> |
||
| 19 | <Card className={cardClasses} body> |
||
| 20 | <h3 className="text-center text-muted mb-0"> |
||
| 21 | {children} |
||
| 22 | </h3> |
||
| 23 | </Card> |
||
| 24 | </div> |
||
| 25 | ); |
||
| 29 |